import request from '@/plugins/axios'

// 读取配置
export const getConfig = async (): Promise<Config> => {
  return await request({
    url: 'admin/config'
  })
}

// 保存配置
export const saveConfig = async (data: Config): Promise<void> => {
  return await request({
    url: 'admin/config',
    method: 'post',
    data
  })
}
